package elk

import (
	"github.com/elastic/go-elasticsearch/v7"
)

func NewSimpleClient(hosts []string) (*elasticsearch.Client, error) {
	cfg := elasticsearch.Config{
		Addresses: hosts,
	}
	return elasticsearch.NewClient(cfg)
}
